package com.itany.pojo;



import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 供应商
 */
public class Supplier implements Serializable {
    /**
     * 供应商id
     */
    private Integer id;
    /**
     * 供应商名称
     */
    private String name;
    /**
     * 是否启用
     */
    private Integer flag;
    /**
     * 简介
     */
    private String info;
    /**
     * 联系人
     */
    private String linkman;
    /**
     * 联系电话
     */
    private String phone;
    /**
     * 入驻时间
     */
    @JSONField(format="yyyy-MM-dd")
    private Date createtime;
    /**
     * 提供图书
     */
    List<Book> books;

    /**
     * 总入库图书量
     * @return
     */
    private Integer totalNumber;

    /**
     * 总图书销售量
     * @return
     */
    private Integer totalSellnumber;

    /**
     * 经销商等级
     * @return
     */
    private String level;

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public List<Book> getBooks() {
        return books;
    }

    public void setBooks(List<Book> books) {
        this.books = books;
    }

    public Integer getTotalNumber() {
        return totalNumber;
    }

    public void setTotalNumber(Integer totalNumber) {
        this.totalNumber = totalNumber;
    }

    public Integer getTotalSellnumber() {
        return totalSellnumber;
    }

    public void setTotalSellnumber(Integer totalSellnumber) {
        this.totalSellnumber = totalSellnumber;
    }

    @Override
    public String toString() {
        return "Supplier{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", flag=" + flag +
                ", info='" + info + '\'' +
                ", linkman='" + linkman + '\'' +
                ", phone='" + phone + '\'' +
                ", createtime=" + createtime +
                ", books=" + books +
                ", totalNumber=" + totalNumber +
                ", totalSellnumber=" + totalSellnumber +
                ", level='" + level + '\'' +
                '}';
    }
}
